<ul>
    <volist name="lzlList" id="vo" key="k">

        <li id="forum_lzl_reply_{$vo.id}" class="show_{$to_f_reply_id} lzl_reply_list" style="<if condition="
        $nowPage eq 1 and $k gt 3 and $k elt $limit">display:none;</if>">

		<div class="XT_list_avatar">
			<a href="{$vo.userInfo.space_url}" ucard="{$vo.userInfo.uid}"> <img
				src="{$vo.userInfo.avatar}" width="40px" height="40px"
				class="avatar-img" /></a>
		</div>
		<div class="XT_list_content">
			<p>
				<a href="{$vo.userInfo.space_url}" ucard="{$vo.userInfo.uid}">
					{$vo.userInfo.username}</a>
			</p>

			<p>{$vo.content|parse_at_users}</p>

			<p style="color: #ccc;">
				{$vo.ctime|time_format}  

				<if condition="CheckPermission(array($vo['uid']))">  <a href="javascript:"
					class="del_lzl_reply pull-right"
					args="lzl_reply_id={$vo.id}&to_f_reply_id={$to_f_reply_id}">删除</a>

				</if>

			</p>


		</div>
		<div class="clearfix"></div>

	</li>


	</volist>

</ul>

<script type="text/javascript">

$(function () {

$('.del_lzl_reply').click(function (event) {
    if(confirm('确定要删除该回复么？')){
        var args = getArgs($(this).attr('args'));
        var to_f_reply_id = args['to_f_reply_id'];
        var url =U('Team/LZL/delLZLReply');
        $.post(url, {id: args['lzl_reply_id']}, function (msg) {
            if (msg.status) {
                op_success('删除成功', '温馨提示');
                 $('#forum_lzl_reply_'+args['lzl_reply_id']).hide();
                $('#reply_' + to_f_reply_id).val('');
                $('#reply_btn_'+msg.post_reply_id).html('回复('+msg.lzl_reply_count+')');
            } else {
                op_error('删除失败', '温馨提示');
            }
        });
    }
    event.preventDefault();
});
});
</script>


<if condition="$nowPage eq 1 and $count gt 3">
    <span class="pull-left XT_reply_count" id="show_{$to_f_reply_id}">
     还有{$totalCount-3}条回复，<a href="javascript:"
                             onclick="$('.show_{$to_f_reply_id}').slideDown('normal');$('#show_{$to_f_reply_id}').hide();$('#pagination_{$to_f_reply_id}').show();">点击查看</a>
    </span>

</if>
<div class="pagination" id="pagination_{$to_f_reply_id}"
     style="margin-left: 40px;<if condition='$nowPage eq 1'>display:none;</if>">
    {$html}
</div>

<script>
    function changePage(id, p) {
        $('#lzl_reply_list_' + id).load(U('Team/LZL/lzllist',['to_f_reply_id',id,'page',p], true), function () {
            ucard();
        })
    }
</script>